🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / repository / src / commonMain / kotlin / org / meshtastic / core / repository / MeshConfigHandler.kt
Displaying Raw • Download
core/repository/src/commonMain/kotlin/org/meshtastic/core/repository/MeshConfigHandler.kt e85300531e124df08788c1b765d50af1bf6d516d (e8530053) Text, 1.85 KB
T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.repository
Tff7b72import T7ee787kotlinx.coroutines.flow.StateFlow
Tff7b72import T7ee787org.meshtastic.proto.Channel
Tff7b72import T7ee787org.meshtastic.proto.Config
Tff7b72import T7ee787org.meshtastic.proto.DeviceUIConfig
Tff7b72import T7ee787org.meshtastic.proto.LocalConfig
Tff7b72import T7ee787org.meshtastic.proto.LocalModuleConfig
Tff7b72import T7ee787org.meshtastic.proto.ModuleConfig
T8b949e/** Interface for handling device and module configuration updates. */
Tff7b72interface T56d364MeshConfigHandler Tb4b4b4{
T8b949e/** Reactive local configuration. */
Tff7b72val Te6edf3localConfigTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3LocalConfigTff7b72>
T8b949e/** Reactive local module configuration. */
Tff7b72val Te6edf3moduleConfigTb4b4b4: Te6edf3StateFlowTff7b72<Te6edf3LocalModuleConfigTff7b72>
T8b949e/** Handles a received device configuration. */
Tff7b72fun Td2a8ffhandleDeviceConfigTb4b4b4(Te6edf3configTb4b4b4: Te6edf3ConfigTb4b4b4)
T8b949e/** Handles a received module configuration. */
Tff7b72fun Td2a8ffhandleModuleConfigTb4b4b4(Te6edf3configTb4b4b4: Te6edf3ModuleConfigTb4b4b4)
T8b949e/** Handles a received channel configuration. */
Tff7b72fun Td2a8ffhandleChannelTb4b4b4(Te6edf3channelTb4b4b4: Te6edf3ChannelTb4b4b4)
T8b949e/**
* Handles the [DeviceUIConfig] received during the config handshake (STATE_SEND_UIDATA). This arrives as the 2nd
* packet in every handshake, immediately after my_info.
*/
Tff7b72fun Td2a8ffhandleDeviceUIConfigTb4b4b4(Te6edf3configTb4b4b4: Te6edf3DeviceUIConfigTb4b4b4)
Tb4b4b4}
Served by rngit 1.5.0 - Generated in 0.04s